package com.rd.student.jike.class2.lihongming.week724_730.S728;

import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStream;
import java.util.LinkedList;
import java.util.Scanner;

/**
 * @Auther:Heinrich
 * @Date:2023/7/28-07-28-17:13
 * @Description:c230728.NameRandom
 * @version:1.0
 */
public class Module3 {
    public static void main(String[] args) throws Exception {
        Scanner scanner = new Scanner(System.in);
        LinkedList<String> list = new LinkedList();
        list = Module2.randomName(scanner.nextInt());
        File file = new File("random.txt");
        file.createNewFile();
        OutputStream os = new FileOutputStream(file);
        for (int i = 0; i <list.size() ; i++) {
            String content =  list.get(i)+"、";
            byte[] byteArr = content.getBytes();
            os.write(byteArr);
        }
        os.close();
    }
}
